project(sunnect)
cmake_minimum_required(VERSION 2.8)
include_directories(include)
aux_source_directory(./src DIR_SRCS)
link_directories(${cmake_CURRENT_SOURCE_DIR}/3rd/lua-5.4.3/src)
add_definitions(-std=c++11)
add_executable(sunnet ${DIR_SRCS})
find_package(Threads)
target_link_libraries(sunnet ${CMAKE_THREAD_LIBS_INIT})
include_directories(./3rd/lua-5.4.3/src)
target_link_libraries(sunnet liblua.a)
target_link_libraries(sunnet dl)